package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.domain.Setmeal;
import com.itheima.domain.SetmealDish;
import com.itheima.dto.SetmealDto;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface SetmealService extends IService<Setmeal> {

    void saveWithDish(SetmealDto setmealDto);

    Page<SetmealDto> pageAll(int page, int pageSize, String name);

    SetmealDto updateId(Long id);

    void update(SetmealDto setmealDto);

    List findDishById(Long id);

    void removeWithDish(List<Long> ids);
}
